let Main = () => import("../views/Main.vue")

const menus = [
    // 首页
    {
        path: 'dashboard',
        name: 'dashboard',
        meta: {
            title: 'dashboard',
            icon: 'house'
        },
        component: Main,//首页
        children: [
            {
                path: '',
                name: 'dashboard',
                meta: {
                    title: 'dashboard',
                    icon: 'house'
                },
                component: () => import('@/views/Dashboard.vue'),//首页
            },
        ]
    },
    //运营管理
    {
        path: 'operat',
        name: 'operat',
        component: Main,
        meta: {
            title: "operat.operat",
            icon: "Histogram"
        },
        children: [
            {
                path: 'order',
                name: 'ordermanage',
                component: () => import('../views/operat/order.vue'),
                meta: {
                    title: "operat.ordermanage",
                    hidden: false
                }
            },
            {
                path: 'comment',
                name: 'commentmanage',
                component: () => import('../views/operat/comment.vue'),
                meta: {
                    title: "operat.commentmanage",
                    hidden: false
                }
            },
            {
                path: 'freight',
                name: 'freightmanage',
                component: () => import('../views/operat/freight.vue'),
                meta: {
                    title: "operat.freightmanage",
                    hidden: false
                }
            },
        ]
    },
    //商品管理
    {
        path: 'shop',
        name: 'shopmamage',
        component: Main,
        meta: {
            title: "shopmamage.shopmamage",
            icon: "ShoppingCart"
        },
        children: [
            {
                path: 'list',
                name: 'listsmanage',
                component: () => import('../views/shop/list.vue'),
                meta: {
                    title: "shopmamage.listsmanage",
                    hidden: false
                }
            },
            {
                path: 'group',
                name: 'groupmanage',
                component: () => import('../views/shop/group.vue'),
                meta: {
                    title: "shopmamage.groupmanage",
                    hidden: false
                }
            },
            {
                path: 'classify',
                name: 'classifymanage',
                component: () => import('../views/shop/classify.vue'),
                meta: {
                    title: "shopmamage.classifymanage",
                    hidden: false
                }
            },
            {
                path: 'create',
                name: 'productCreate',
                component: () => import('../views/shop/create.vue'),
                meta: {
                    title: "shopmamage.productCreate",
                    hidden: true,
                    keepAlive: true
                }
            },
            {
                path: 'edit/:id',
                name: 'productEdit',
                props: true,
                component: () => import('../views/shop/edit.vue'),
                meta: {
                    title: "shopmamage.productEdit",
                    hidden: true,
                    keepAlive: true
                }
            },
        ]
    },
    //推广管理
    {
        path: 'promotion',
        name: 'promotionmanage',
        component: Main,
        meta: {
            title: "promotionmanage.promotionmanage",
            icon: "Management"
        },
        children: [
            {
                path: 'advertisement',
                name: 'advertisementmanage',
                component: () => import('../views/promotion/advertisement.vue'),
                meta: {
                    title: "promotionmanage.advertisementmanage",
                    hidden: false
                }
            },
            {
                path: 'coupon',
                name: 'couponmanage',
                component: () => import('../views/promotion/coupon.vue'),
                meta: {
                    title: "promotionmanage.couponmanage",
                    hidden: false
                }
            }
        ]
    },
    //用户管理
    {
        path: 'user',
        name: 'usermanage',
        component: Main,
        meta: {
            title: "usermanage.usermanage",
            icon: "User"
        },
        children: [
            {
                path: 'member',
                name: 'membermanage',
                component: () => import('../views/user/member.vue'),
                meta: {
                    title: "usermanage.membermanage",
                    hidden: false
                }
            },
            {
                path: 'address',
                name: 'addressmanage',
                component: () => import('../views/user/address.vue'),
                meta: {
                    title: "usermanage.addressmanage",
                    hidden: false
                }
            },
            {
                path: 'userInfo',
                name: 'userinfomanage',
                component: () => import('../views/user/userInfo.vue'),
                meta: {
                    title: "usermanage.userinfomanage",
                    hidden: true
                }
            }
        ]
    }, //系统管理
    {
        path: 'system',
        name: 'systemmanage',
        component: Main,
        meta: {
            title: "systemmanage.systemmanage",
            icon: "Setting"
        },
        children: [
            {
                path: 'setting',
                name: 'settingmanage',
                component: () => import('../views/system/system.vue'),
                meta: {
                    title: "systemmanage.settingmanage",
                    hidden: false
                }
            },
            {
                path: 'admin',
                name: 'adminmanage',
                component: () => import('../views/system/admin.vue'),
                meta: {
                    title: "systemmanage.adminmanage",
                    hidden: false
                }
            },
            {
                path: 'operationLog',
                name: 'operationLogmanage',
                component: () => import('../views/system/operationLog.vue'),
                meta: {
                    title: "systemmanage.operationLogmanage",
                    hidden: false
                }
            },
            {
                path: 'role',
                name: 'rolemanage',
                component: () => import('../views/system/role.vue'),
                meta: {
                    title: "systemmanage.rolemanage",
                    hidden: false
                }
            }
        ]
    }
]

export default menus